package com.medical.sys.mapper;

import com.medical.sys.model.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface RoleMapper {
    int deleteByPrimaryKey(String id);

    int insert(Role record);

    Role selectByPrimaryKey(String id);

    List<Role> selectByIds(List<String> ids);

    List<Role> selectByName(String name);

    List<Role> selectByResourceId(String resourceid);

    List<Role> selectAll(Boolean administrator);

    int updateByPrimaryKey(Role record);
}